Page({
  data: {
    store: [],
  },
  onLoad(query) {
    var id = query['query'];
    var app = getApp();
    var url = app.globadData.apiUrlHeader + 'get-store-detail';
    my.httpRequest({
      url: url, // 目标服务器 url
      method: 'POST',
      type: 'JSON',
      header: {'Content-Type': 'Application/json'},
      data: JSON.stringify({'access_token': app.globadData.access_token, 'store_id': id}),
      success: (res) => {
        if (res.data.status == 0) {
          // todo 位置信息
          this.setData({store: res.data.data});
        }
      },
    });
  },
});
